package com.itheima.ThreadPrac4;

public class Demo {
    public static void main(String[] args) {
        //学习抢红包
        mythread4 t1 = new mythread4();
        mythread4 t2 = new mythread4();
        mythread4 t3 = new mythread4();
        mythread4 t4 = new mythread4();
        mythread4 t5 = new mythread4();
        t1.setName("第1人");
        t2.setName("第2人");
        t3.setName("第3人");
        t4.setName("第4人");
        t5.setName("第5人");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();

    }
}
